//
//  OAuthViewController.swift
//  WeiboCY
//
//  Created by 林小陌 on 16/1/21.
//  Copyright © 2016年 林小陌. All rights reserved.
//

import UIKit

class OAuthViewController: UIViewController {
   
    
    
    let webView = UIWebView()
    override func loadView() {
        view = webView
    }
    
    @objc private func close(){
        dismissViewControllerAnimated(true, completion: nil)
    }
    
    
    override func viewDidLoad() {
        super.viewDidLoad()
//        navigationController?.navigationBar.tintColor = UIColor.orangeColor()
        UINavigationBar.appearance().tintColor = UIColor.orangeColor()
         print(view)
        setNavBar()
        // Do any additional setup after loading the view.
    }
    
    private func setNavBar(){
        self.navigationItem.leftBarButtonItem = UIBarButtonItem(title: "关闭", style:.Plain, target: self, action: "close")
    }
    
    
    
    
    
    
    
    
    
    
    
    

   

}
